package com.three.dao;

import com.baor.baseUtil.R;
import com.three.domain.Students;
import com.three.domain.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentDao {
    public int updateStudent(Students students);
    public R updUser(Students student);

    //pageCountStudents
    int PageCountStudents();
    //    查询在习生列表
    List<Students> studentsList(@Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize);
    //    添加在习生
    int addstudent(@Param("name") String name,
                   @Param("gender") String gender,
                   @Param("class_name") String class_name,
                   @Param("graduation_date") String graduation_date,
                   @Param("phone") String phone,
                   @Param("emergency_name") String emergency_name,
                   @Param("emergency_contact") String emergency_contact,
                   @Param("home") String home

                   );
    int addstu(@Param("name") String name,
               @Param("gender") String gender,
               @Param("phone") String phone
               );
    int updateUser_id(@Param("phone") String phone);
    // 更新学生信息
    int updateStudents(Students student);
    int updateUser(Students student);
    // 软删除学生
    int softDeleteStudent(int student_id);
    int softDeleteStudentByuser(int user_id);
    //    关键字搜索在习生总条数
    int PageCountstukey(@Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize, @Param("name")String name);
    //    关键字查询在习生列表
    List<Students> getStuByName(@Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize, @Param("name")String name);


}
